import * as React from "react";
import { View, Text, Button } from "react-native";

export default (props: any) => {
    console.log(props);
    const toHome = () => {
        props.navigation.push("home");
    };
    return (
        <View style={{ flexDirection: "row" }}>
            <Button onPress={toHome} title="首页" color="#841584" />
            <Button onPress={toHome} title="首页" color="#841584" />
        </View>
    );
};
